<ul class="sf_admin_actions">
<?php $editActions = $this->getParameterValue('edit.actions') ?>
<?php if (null !== $editActions): ?>
<?php foreach ((array) $editActions as $actionName => $params): ?>
  <?php if ($actionName == '_delete') continue ?>
  <?php echo $this->addCredentialCondition($this->getButtonToActionAjax($actionName, $params, true), $params) ?>
<?php endforeach; ?>
<?php else: ?>

   <li>[?php echo submit_to_remote('save', 'Guardar', array (
  'method' => 'POST',
  'before' => 'if($("accion_formulario")){ $("accion_formulario").value="save";}',
  'update' => 
  array (
    'success' => 'div_edit_detalle_succes',
    'failure' => 'div_error',
  ),
  'script' => true,
  'url' => '<?php echo $this->getModuleName() ?>/save',
), array (
  'name' => 'save',
  'class' => 'sf_admin_action_save',
) ) ?]
</li>
  <li>[?php echo submit_to_remote('save_and_add', 'Guardar y Adicionar', array (
  'method' => 'POST',
  'before' => 'if($("accion_formulario")){ $("accion_formulario").value="save_and_add";}',
  'update' => 
  array (
    'success' => 'div_edit_detalle_succes',
    'failure' => 'div_error',
  ),
  'script' => true,
  'url' => '<?php echo $this->getModuleName() ?>/save',
), array (
  'name' => 'save_and_add',
  'class' => 'sf_admin_action_save_and_add',
) ) ?]</li>



<?php endif; ?>
</ul>


